package com.base.day6;

import java.util.Date;
/**
 * 订单类
 * @author jiyu
 *
 */
public class Order {
	//预约的车
	private Car car;
	//订单类型，比如洗车，或者修车，或者保养
	private String type;
	//创建订单的时间
	private Date createDate;
	//预约的时间
	private Date bookDate;
	//服务的门店
	private Shop shop;
	//必填字段，可以放在构造方法
	public Order(Car target,Shop shop, Date d, String type){
		// 表示new订单对象的时候，就直接把当前的日期，赋值给了 创建订单时间变量
		this.createDate=new Date();
		this.car=target;
		this.shop=shop;
		this.type=type;
		this.bookDate=d;
	}
	public Car getCar() {
		return car;
	}
	public void setCar(Car car) {
		this.car = car;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public Date getCreateDate() {
		return createDate;
	}
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}
	public Date getBookDate() {
		return bookDate;
	}
	public void setBookDate(Date bookDate) {
		this.bookDate = bookDate;
	}
	public Shop getShop() {
		return shop;
	}
	public void setShop(Shop shop) {
		this.shop = shop;
	}
	
	
	

}
